package com.totcy.atom;

/**
 * description: 常量类
 *
 * @author : Totcy
 * @date : 2017/10/30 16:23
 * @update : 2017/10/30
 */

public class CommonValues {
    /**
     * 响应正常code
     */
    public static final int SUCCESS_CODE = 0;

    public static final String PLATFORM = "Android";
    public static final String APP_KEY = "totcy";
    public static final String KEY_WEATHER_ADDRESS = "hefeng_address";
    /**
     * debug和测试包用test服务器
     */
    public static final boolean isRunningTest =
            BuildConfig.DEBUG || BuildConfig.FLAVOR.contentEquals("alpha_test");
    public static final String SERVER_URL =
            (isRunningTest)
                    //公司电脑ip
                    //? "http://192.168.3.80:8080/AtomApp/"
                    ? "http://59.110.163.168:9090/"
                    : "http://192.168.3.80:8080/AtomApp/";

    //http://gank.io/api/data/福利/10/1

    public static final String GANK_BASE_URL = "http://gank.io/api/data/";

    public static final String BASE_URL_GIRLS = "http://m.mm131.com";
    public static final String MAIN = "/";
    public static final String XINGGAN = "/xinggan/";
    public static final String QINGCHUN = "/qingchun/";
    public static final String XIAOHUA = "/xiaohua/";
    public static final String CHEMO = "/chemo/";
    public static final String QIPAO = "/qipao/";
    public static final String MINGXING = "/mingxing/";

    /**
     * 项目码云托管地址
     */
    public static final String PROJECT_FROM_MAYUN_URL = "https://gitee.com/totcy/Atom";
    /**
     * 金山词霸每日一句
     * 传入参数：
     * file	//数据格式，默认（json），可选xml
     * date	//标准化日期格式 如：2013-05-06， 如：http://open.iciba.com/dsapi/?date=2013-05-03
     * 如果 date为空 则默认取当日的，当日为空 取前一日的
     * type(可选)	// last 和 next 你懂的，以date日期为准的，last返回前一天的，next返回后一天的
     */
    public static final String DAILY_SENTENCE_CIBA = "http://open.iciba.com/dsapi/";
    /**
     * 张涛实验室每日一句
     */
    public static final String DAILY_SENTENCE_KYMJS = "http://openapi.kymjs.com:8081/splash/";
    /**
     * 微信
     */
    public static final String AppSecret = "52a68897003795ecea550b85227758e7";

    /**
     * 和风天气接口： 本接口包含了常规天气数据接口，
     * 如: 3-7天天气预报、实况天气、逐小时预报以及生活指数，
     * 有权限的用户可通过访问此接口一次性获取某一地区的上述所有天气数据
     */
    public static final String HEFENG_WEATHER_API = "https://free-api.heweather.com/s6/weather";
    /**
     * 和风天气key
     */
    public static final String HEFENG_WEATHER_KEY = "b17de10b246c45ec9f9e2ab9ea11098e";
    /**
     * 和风天气用户id
     */
    public static final String HEFENG_WEATHER_USERID = "HE1801181832231725";

    /**
     * APP 版本更新
     */
    public static final String CHECK_APP_UPDATE = "https://gitee.com/totcy/Atom/raw/master/resource/docs/AppCheckUpdate";
}
